package com.kingdee.eas.custom.hr.attendance.app;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.custom.hr.attendance.SickVacationEntryFactory;
import com.kingdee.eas.hr.base.IHRBillBaseEntry;
import com.kingdee.eas.hr.base.app.IHRBillBizBean;

public class SickVacationControllerBean extends
		AbstractSickVacationControllerBean {
	private static Logger logger = Logger
			.getLogger("com.kingdee.eas.custom.hr.attendance.app.SickVacationControllerBean");

	@Override
	protected IHRBillBizBean getBizBean() throws BOSException, EASBizException {
		return new SickVacationBizBean();
	}

	@Override
	protected String getBillField() throws BOSException, EASBizException {
		return "bill";
	}

	@Override
	protected String getEntryEffectDateField() throws BOSException,
			EASBizException {
		return "vacationBeginDate";
	}

	@Override
	protected String getEntryField() throws BOSException, EASBizException {
		return "entrys";
	}

	@Override
	protected IHRBillBaseEntry getEntryInterface(Context ctx)
			throws BOSException, EASBizException {
		return SickVacationEntryFactory.getLocalInstance(ctx);
	}
}